﻿using Microsoft.AspNetCore.Http;
using MKAdminCore.DTO.Web.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace MKAdminCore.ToolKit.IpHelper
{
    public class IpAddressHelper
    {
        //private readonly IHttpContextAccessor httpContextAccessor;
        //public IpAddressHelper(IHttpContextAccessor httpContextAccessor)
        //{
        //    this.httpContextAccessor = httpContextAccessor;
        //}

        public Result<string> GetIpAddress()
        {
            var ipResult = new Result<string>();

            //var aaa = httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString();

            return ipResult;
        }
    }
}
